package org.example.im.bean.protocol.response;

import lombok.*;
import org.example.im.bean.protocol.CommandType;
import org.example.im.bean.protocol.Packet;

/**
 * @author dingrui
 * @since 2022/2/12
 * @description
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class JoinGroupResponsePacket extends Packet {

    private boolean success;
    private String groupId;
    private String msg; // 失败详情

    @Override
    public CommandType getCommandType() {
        return CommandType.JOIN_GROUP_RESPONSE;
    }
}
